%.php.sample:%.php
	cat $< | sed -e "s/\'.*\'/'TODO'/g" > $@

source: config.php.sample ftp.properties.sample

ftp.properties.sample: ftp.properties Makefile
	cat $< | sed "s/=.*$$/=TODO/g" > $@

test:
	php tests.php

clean:
	rm -f *~ config.php.sample ftp.properties.sample
	rm -f `find . -name "*~"`